$(function() {
  $('a.delete').click(function() {
    var that = $(this);
    var data = {'auto_id':''};
    data.auto_id = $(this).attr('data-id');
    $.post('/product/delete_auto/', data, function(ret) {
      if (ret.code == code.succ) {
        //alert(ret.msg);
        that.parent().parent().fadeOut('slow');
      } else {
        alert('操作失败');
      }
    });
  });
});
